import axiosData from "@/api/axios";
export default {
  /**
     * @description: 查询工况设备
     * @param {String/Number} page *
     * @param {String/Number} size *
     * @param {Object} entity {} *
     * @return {Array}
     */
  // 分页查询
  getListByPageConditon(params) {
    return axiosData.post("/v3/40089-process-v2/processingLoss/queryPageByCondition", { ...params, organizationNo: sessionStorage.organizationNo });
  },
  // 添加
  add(params) {
    return axiosData.post("/v3/40089-process-v2/processingLoss/add", { ...params, organizationNo: sessionStorage.organizationNo })
  },
  // 编号删除
  noDel(no) {
    return axiosData.get(`/v3/40089-process-v2/processingLoss/delByNo?no=${no}`)
  },
  // 批量删除
  batchDel(params) {
    return axiosData.post("/v3/40089-process-v2/processingLoss/delListByNo", { ...params, organizationNo: sessionStorage.organizationNo })
  },
  // 编辑
  edit(params) {
    return axiosData.post("/v3/40089-process-v2/processingLoss/edit", { ...params, organizationNo: sessionStorage.organizationNo })
  },
  conditionQuery(params) {
    return axiosData.post("/v3/40089-process-v2/processingLoss/queryByCondition", { ...params, organizationNo: sessionStorage.organizationNo })
  },
  // 编号查询
  noQuery(params) {
    return axiosData.post(`/v3/40089-process-v2/processingLoss/queryByNo?no=${params}`)
  },
  // 编号批量查询
  noBatchQuery(noList) {
    let params = { noList: noList }
    return axiosData.post("/v3/40089-process-v2/processingLoss/queryListByNo", { ...params, organizationNo: sessionStorage.organizationNo })
  }
}
